package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {
    /**
     * 营业额统计
     * @param mp
     * @return
     */
    Double stasticByMap(Map mp);

    /**
     * 订单统计
     * @param mp
     * @return
     */
    Integer countByMap(Map mp);

    /**
     * 销量TOP10统计
     * @param beginTime
     * @param endTime
     * @return
     */
    List<GoodsSalesDTO> getSalesTop10(LocalDateTime beginTime, LocalDateTime endTime);
}
